package abstractfactory.concretefactory;

import abstractfactory.abstractfactory.AbstractFactory;
import abstractfactory.human.Human;
import abstractfactory.human.YellowMan;
import abstractfactory.human.YellowWoman;

/**
 * @author heyuduo
 * @date 2022/7/3 20:43
 */
public class YellowHumanFactory extends AbstractFactory {
    @Override
    public Human createMan() {
        return new YellowMan();
    }

    @Override
    public Human createWoman() {
        return new YellowWoman();
    }
}
